package com.tyhua.huage;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface StudentMapper {
    @Select("select * from student where id=#{id}")
    public Student findById(String id);
    @Insert("insert into student(id,number,name,myclass)"+"values(#{id},#{number},#{name},#{myclass})")
    public int insertStudent(Student student);
}
